﻿@model Eieboom.General.GeneralConfigInfo
@using res = Sob.Resource.Views.Admin.Admin;
@{Eieboom.General.GeneralConfigInfo ci = ViewBag.CI as Eieboom.General.GeneralConfigInfo;}
@section MenuInfo{
<ul> 
    <li>@Html.ActionLink("-"+ res.ManagementHome+" -", "Index", "Admin")</li>
    <li>@Html.ActionLink("-" + res.ContentManagement + " -", "AdminArticle", "Admin")</li>
    <li class="selected">
        <span class="selected-arrow">&nbsp;</span>
        <a href="###">- @res.Configuration -</a>
        <ul>
            <li  class="selected">@Html.ActionLink(res.BasisSet, "AdminBaseConfig", "Admin")</li>
            <li>@Html.ActionLink(res.CategorySettings, "AdminCategorySort", "Admin")</li>
            <li class="v10">@Html.ActionLink(res.ForumConfiguration, "AdminBBSConfig", "Admin")</li>
            <li>@Html.ActionLink(res.ReproducedConfiguration, "AdminPublishWebConfig", "Admin")</li>
        </ul>
    </li>
    <li>@Html.ActionLink("-" + res.UserManagement + " -", "AdminUserList", "Admin")</li>
</ul>
}
<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script> 
<div id="mainContent">
        <div id="leftBox">
          <div id="pagePath">
          @res.Location：@res.BasisSet
          </div>

          <div class="contentBox">
            <div class="contentBoxTop">
              <h3>@res.BasisSet</h3>
            </div>
            <div class="innerContent">
                @using (Ajax.BeginForm("AdminBaseConfig", new AjaxOptions { LoadingElementId = "Loading", InsertionMode = InsertionMode.InsertBefore, OnSuccess = "ProcessSuccess" }))
                {
                    <div id="AjaxResult">
            <div class="label">
                            <div class="editor-label">
                                @Html.LabelFor(m => m.Webtitle)
                            </div>
                            <div class="editor-field">
                                @Html.TextBoxFor(m => m.Webtitle, new { style = "width: 500px;" })
                                @Html.ValidationMessageFor(m => m.Webtitle)
                            </div>
            </div>
            <div class="label">
                    <div class="editor-label">
                        @Html.LabelFor(m => m.WebDescription)
                    </div>
                    <div class="editor-field clstxtarea">
                        @Html.TextAreaFor(model => model.WebDescription, new { style = "width: 500px; height:60px" })
                        @Html.ValidationMessageFor(m => m.WebDescription)
                    </div>
            </div>
            <div class="label">
                            <div class="editor-label">
                                @Html.LabelFor(m => m.Weburl)
                            </div>
                            <div class="editor-field">
                                @Html.TextBoxFor(m => m.Weburl, new { style = "width: 500px;" })
                                @Html.ValidationMessageFor(m => m.Weburl)
                            </div>
            </div>
            <div class="label hide">
                            <div class="editor-label">
                                @Html.LabelFor(m => m.WebPath)
                            </div>
                            <div class="editor-field">
                                @Html.TextBoxFor(m => m.WebPath, new { style = "width: 200px;" })
                                @Html.ValidationMessageFor(m => m.WebPath)
                            </div>
            </div>
            <div class="label">
                            <div class="editor-label">
                                @Html.LabelFor(m => m.Theme)
                            </div>
                            <div class="editor-field">
                                @Html.TextBoxFor(m => m.Theme, new { style = "width: 200px;" })
                                @Html.ValidationMessageFor(m => m.Theme)
                            </div>
            </div>
                        <div class="label">
                            <div class="editor-label">
                                @Html.LabelFor(m => m.DefaultLang)
                            </div>
                            <div class="editor-field">
                                @Html.DropDownList("DefaultLang")
                            </div>
                        </div>
            <div class="label">
                            <div class="editor-label">
                                @Html.LabelFor(m => m.Icp)
                            </div>
                            <div class="editor-field">
                                @Html.TextBoxFor(m => m.Icp, new { style = "width: 200px;" })
                                @Html.ValidationMessageFor(m => m.Icp)
                            </div>
            </div>
            <div class="label">
                            <div class="editor-label">
                                @Html.LabelFor(m => m.IndexPagerCount)
                            </div>
                            <div class="editor-field">
                                @Html.TextBoxFor(m => m.IndexPagerCount, new { style = "width: 30px;" })
                                @Html.ValidationMessageFor(m => m.IndexPagerCount)
                            </div>
            </div>
            <div class="label">
                            <div class="editor-label">
                                @Html.LabelFor(m => m.CatePagerCount)
                            </div>
                            <div class="editor-field">
                                @Html.TextBoxFor(m => m.CatePagerCount, new { style = "width: 30px;" })
                                @Html.ValidationMessageFor(m => m.CatePagerCount)
                            </div>
            </div>
            <div class="label">
                            <div class="editor-label">
                                @Html.LabelFor(m => m.CommentPagerCount)
                            </div>
                            <div class="editor-field">
                                @Html.TextBoxFor(m => m.CommentPagerCount, new { style = "width: 30px;" })
                                @Html.ValidationMessageFor(m => m.CommentPagerCount)
                            </div>
            </div>
            <div class="label">
                            <div class="editor-label">
                                @Html.LabelFor(m => m.NotePagerCount)
                            </div>
                            <div class="editor-field">
                                @Html.TextBoxFor(m => m.NotePagerCount, new { style = "width: 30px;" })
                                @Html.ValidationMessageFor(m => m.NotePagerCount)
                            </div>
            </div>
            <div class="label">
                            <div class="editor-label">
                                @Html.LabelFor(m => m.ThumbnailInfo)
                            </div>
                            <div class="editor-field">
                                @Html.TextBoxFor(m => m.ThumbnailInfo, new { style = "width: 200px;" })
                                @Html.ValidationMessageFor(m => m.ThumbnailInfo)
                            </div>
            </div>
            <div class="label">
                            <div class="editor-label">
                                @Html.LabelFor(m => m.ContributorCateIds)
                            </div>
                            <div class="editor-field">
                                @Html.TextBoxFor(m => m.ContributorCateIds, new { style = "width: 200px;" })
                                @Html.ValidationMessageFor(m => m.ContributorCateIds)
                            </div>
            </div>
            <div class="label">
                            <div class="editor-label">
                                @Html.LabelFor(m => m.MaxSummaryCharCount)
                            </div>
                            <div class="editor-field">
                                @Html.TextBoxFor(m => m.MaxSummaryCharCount, new { style = "width: 30px;" })
                                @Html.ValidationMessageFor(m => m.MaxSummaryCharCount)
                            </div>
            </div>
                            <p>
                                <input type="image" src="/Content/image/admin/bt_submit.gif" name="BtnSubmit" id="BtnSubmit"> 
                                <span id="Loading" style="display:none;"> @res.Ajax_Tip</span>
                            </p>
                    </div>
                }
            </div><!--end of #box-3-->
          </div>

      </div><!-- end of #leftBox -->
              
  </div><!-- end of #content -->
@section Js{
<script type="text/javascript">
    function ProcessSuccess(re) {
        $('#AjaxResult').html(re);
    }
</script> 
}